package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	HouseTypeEventNew           = "pm.HouseTypeNew"
	HouseTypeEventBeforeCreate  = "pm.HouseTypeBeforeCreate"
	HouseTypeEventBeforeUpdate  = "pm.HouseTypeBeforeUpdate"
	HouseTypeEventBeforeSave    = "pm.HouseTypeBeforeCreate pm.HouseTypeBeforeUpdate"
	HouseTypeEventAfterCreate   = "pm.HouseTypeAfterCreate"
	HouseTypeEventAfterUpdate   = "pm.HouseTypeAfterUpdate"
	HouseTypeEventAfterSave     = "pm.HouseTypeAfterCreate pm.HouseTypeAfterUpdate"
	HouseTypeEventDelete        = "pm.HouseTypeDelete"
	HouseTypeAccessControlEvent = "pm.HouseTypeAccessControl"
)

func GetHouseTypeConfig() *mgo.DocConfig {
	return HouseType_Config
}

var HouseType_Config *mgo.DocConfig

func init() {
	HouseType_Config = NewHouseTypeConfig()
}
func NewHouseTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "pm.HouseType",
		Fields: []string{
			"name", "price", "note",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
